package pira.constants;

import org.neo4j.graphdb.RelationshipType;


public class PIRAConfig {
	// Database constants
	public static enum MyRelationshipTypes implements RelationshipType {
		WROTE, 
		WRITTEN_BY, 
		CITE, 
		UNKNOWN
	}

	/**
	 * Print to stdout or not.
	 */
	public static final boolean DEBUG = false;

	// the global node
	public static final long GLOBALNODEID = 1;
	public static final String ALLNODENUMBER = "all node number";
	public static final String PAPERNUMBER = "paper number";
	public static final String AUTHORNUMBER = "author number";

	// the external node
	public static final long EXTERNALNODEID = 2;
	public static final String EXTERNAL = "EXTERNALNODE";
	// End stolen from SampleDB1.3 project.

	// configuration file
	public static final String CONFIG = "data/neo4j_config.props";

	// Nb of authors & papers
	public static final long NB_AUTHOR=246039;
	public static final long NB_PAPER=281207;

	public static final long NB_AUTHOR_DBLP=73241;
	public static final long NB_PAPER_DBLP=67772;

	public static final long MAX=600000;

	// DB location
	public static String DBPATH="fullDB_v4";

	public static String MINIDB="D:\\data\\minimumDb";
	
	// XML location
//	public static final String XMLPATH = "/home/liang/Programs/pira/fullDB";
	public static final String XMLPATH = "testXMLs/";

	/**
	 * reduced database which contains only nodes with high score in pira
	 * (or pr-p, pr-a,... ) 
	 */
	public static String REDUCEDDB="D:\\data\\reducedDB";

	/**
	 * We choose only nodes with score < MAXRANK to put in reduced DB
	 */
	public static int MAXRANK=1000;

	// Separator
	public static String SEPARATOR= "=================================================";

	// Attributes used in DB
	public static final String FULLNAME = "full name"; // pira.dblp.xmlparser.Author.FULLNAME
	public static final String AUTHORS = "authors"; // pira.dblp.xmlparser.Paper.AUTHORS
	public static final String TITLE = "title"; // pira.dblp.xmlparser.Paper.TITLE

	/**
	 * To be used within reducedDB
	 */
	public static final String OLDID = "id"; 

	public static final String PR_P_RANK = "pr_p_rank"; 
	public static final String PR_P_SCORE= "pr_p_score"; 

	public static final String PR_A_RANK = "pr_a_rank"; 
	public static final String PR_A_SCORE= "pr_a_score";

	public static final String PIRA_RANK = "pira_rank"; 
	public static final String PIRA_SCORE = "pira_score"; 

	public static final String GINDEX= "gindex"; 
	public static final String GINDEX_RANK="gindex_rank";

	public static final String HINDEX= "hindex";
	public static final String HINDEX_RANK= "hindex_rank";

	public static final String CITATION= "citation"; 
	public static final String CITATION_RANK= "citation_rank"; 

	public static final String PUBLICATION= "publication"; 
	public static final String PUBLICATION_RANK= "publication_rank"; 

	public static final String IN_DBLP = "from dblp";

	/*
	 *  Configuration constant
	 */
	public static final int EDGEWEIGHTDECIMAL = 4;

	public static final String ID = "id";
	public static final String NULL = "null";
}
